import Vue from "vue";
import App from "./App.vue";
import VueRouter from "vue-router";
import router from "./router";
import store from "./store";
// import ElementUI from "element-ui";
// import 'element-ui/lib/theme-chalk/index.css';
import {
  Button,
  Menu,
  MenuItem,
  MenuItemGroup,
  RadioButton,
  RadioGroup,
  Submenu,
  Backtop,
  Loading,
  Message,
  Input,
  Breadcrumb,
  BreadcrumbItem,
  InputNumber,
  Dialog,
  Form,
  FormItem,
  Cascader,
  Tabs,
  TabPane,
  Upload,
  Pagination
} from "element-ui";
import "./assets/reset.scss";
import "./icon图标/font/iconfont.css"

// Vue.use(ElementUI);
Vue.use(Menu);
Vue.use(MenuItem);
Vue.use(MenuItemGroup);
Vue.use(Submenu);
Vue.use(RadioButton);
Vue.use(RadioGroup);
Vue.use(Button);
Vue.use(Backtop);
Vue.use(Loading);
Vue.use(Input);
Vue.use(InputNumber);
Vue.use(Breadcrumb);
Vue.use(BreadcrumbItem);
Vue.use(Dialog);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Cascader);
Vue.use(Tabs);
Vue.use(TabPane);
Vue.use(Upload);
Vue.use(Pagination);
// 不能这样用，官方文档没更新Vue.use(Message)，按下面方法
Vue.prototype.$message = Message;
Vue.use(VueRouter);
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
  beforeCreate() {
    Vue.prototype.$bus = this; //安装全局事件
  },
}).$mount("#app");
